/**
 * @Author: june
 * @Date: 2021-03-26 23:32:22
 * @LastEditors: june
 * @LastEditTime: 2021-04-02 16:15:05
 * @Description: 公共请求封装
 */
import { request } from "@xiaoe/js-tools/lib/request";

//定义直播前缀
var alivePrefix = ""
export function changealivePrefix(data){
  alivePrefix = data
}
// 获取积分获取数据
export function getIntegralData(params) {
    const url = `${alivePrefix}/xe.transaction.integral.order_grant.get/1.0.0`;
    return request({ url, params });
}
// 获取购物车跳转到支付完成也特殊调用的引导加群
export function getCartLeadGroup() {
    const url = `${alivePrefix}/get_shop_guide_config`;
    return request({ url });
}